<? error_reporting("E_ALL");?>

<? include_once('transl.php'); $splitted_transl=split_transl(__FILE__);?>
<? include_once('artikul.php'); //загрузка артикулов?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title><? echo (transl_takestring($splitted_transl, "Ввод брутто значений",$langchoosed));?></title>
</head>

<?//------------------------------------------?>
<body bgcolor="#CCCCCC">

<?//------------------------------------------?>
<script language="javascript" src="dynaddline.js">//скрипт для динамического добавления строчек</script>
<script language="javascript" src="matematika.js"></script>
<span id="shapka">
<table>
	<tr align="center">
	    <td colspan="5"><h1><? echo (transl_takestring($splitted_transl, "Ввод брутто значений",$langchoosed));?></h1></td>
    </tr>
    <tr>
    	<td><? echo (transl_takestring($splitted_transl, "Предприятие:",$langchoosed));?></td>
        <td><input name="fab_nom_inputfield" type="text" value="136" size="8" readonly="readonly" style="background-color:#66FFCC" /></td>
        <td><input name="fab_name_inputfield" type="text" value="KNAUF GIPS KOLPINO" size="30" readonly="readonly" style="background-color:#66FFCC" /></td>
        <td><? echo (transl_takestring($splitted_transl, "Дата:",$langchoosed));?></td>
        <td><input name="date_inputfield" type="text" value="3.12.2004" size="12" readonly="readonly" style="background-color:#66FFCC" /></td>
    </tr>
    <tr>
    	<td><? echo (transl_takestring($splitted_transl, "Ресурсы:",$langchoosed));?></td>
        <td><input name="res_nom_inputfield" type="text" value="136" size="8" readonly="readonly" style="background-color:#66FFCC" /></td>
      <td><input name="res_name_inputfield" type="text" value="BS KOLPINO" size="30" readonly="readonly" style="background-color:#66FFCC"/></td>
        <td><? echo (transl_takestring($splitted_transl, "Смена:",$langchoosed));?></td>
        <td><input name="smena_inputfield" type="text" value="2" size="12" readonly="readonly" style="background-color:#66FFCC"/></td>
    </tr>
</table>
</span>
<br />

<span id="table">
<form id="vvodbrutto">
<table border="1">
<tr>
    	<td><? echo (transl_takestring($splitted_transl, "№ арт.",$langchoosed));?></td>
        <td><? echo (transl_takestring($splitted_transl, "Описание артикула",$langchoosed));?></td>
        <td><? echo (transl_takestring($splitted_transl, "Шир.",$langchoosed));?></td>
    <td><? echo (transl_takestring($splitted_transl, "Пог. метры",$langchoosed));?></td>
        <td><? echo (transl_takestring($splitted_transl, "Шт.",$langchoosed));?></td>
        <td colspan="2"><? echo (transl_takestring($splitted_transl, "Продолж.",$langchoosed));?></td>
        <td><? echo (transl_takestring($splitted_transl, "Прич. прост.",$langchoosed));?></td>
        <td><? echo (transl_takestring($splitted_transl, "Место прост.",$langchoosed));?></td>
        <td><a href="#" onclick="return addline();"><? echo (transl_takestring($splitted_transl, "Добавить",$langchoosed));?></a></td>
    </tr>
    <tr id="newline" nomer="[0]">
    	<td><select name="art_nom_selectfield[0]" onchange='redraw_artdescr()'>
    			<? 	
					$i=1;
					$ar=getartikul();
					echo('<option value=""> </option>');
					while ($element=each($ar))
					{
						echo('<option value="'.$element[1]->nom.'">'.$element[1]->nom.'</option>');
					}
				?>
        	</select>
        </td>
        <td><input name="art_desc_inputfield[0]" type="text" value="" readonly="readonly" style="background-color:#66FFCC" /></td>
        <td><input name="shirina_inputfield[0]" type="text" value="" size="5"/></td>
        <td><input name="pog_metr_inputfield[0]" type="text" value="" size="6" /></td>
        <td><input name="shtuk_inputfield[0]" type="text" value="" size="2" /></td>
        <td><input name="prodolzh_inputfield[0]" type="text" value="" onkeyup='count1("")' size="2" /></td>
        <td><select name="prodolzh_selectfield[0]">
        		<option value="1">1</option>
                <option value="2">2</option>
		    </select>
        </td>
        <td><input name="prichprost_inputfield[0]" type="text" value="" size="10" /></td>
        <td><select name="mestoprost_selectfield[0]">
<option value="1">1</option>
                <option value="2">2</option>
		    </select>
        </td>                
		<td valign="top"><a href="#" onclick="return rmline(0);"/><? echo (transl_takestring($splitted_transl, "Удалить",$langchoosed));?></td>
    </tr>
</table>
</form>
</span>
<br />
<? echo (transl_takestring($splitted_transl, "Суммарная продолжительность:",$langchoosed)." ");?>
<input name="sumprodolzh" type="text" value="" readonly="readonly" style="background-color:#66FFCC" />
<br />
<input type="button" onclick="buttnclick()" value="button" />
</body>
</html>
